#!/bin/bash
# prints hit size of hard clipped, ungapped sam.

awk 'BEGIN{total=0; FS="\t";}{split($6,a,"H"); split(a[2],b,"M"); total+=b[1];} END{print total;}'
